package com.edu.bean;

/**
 * @Author:mx
 * @Date:2025/10/31-10:38:59
 */
public class StudentProxy extends Student implements Study{

    private Student stu;

    public void setStu(Student stu) {
        this.stu = stu;
    }

    @Override
    public void study() {
        stu.study();
        System.out.println("记忆了笔记");
    }

    public StudentProxy(Student stu) {
        this.stu = stu;
    }
}
